<?php
    $LastSearch = SessionHelper::getSession('LastSearch', 'CLIENTE');
    $ArCidades = SessionHelper::getSession('AllCidades', 'CLIENTE');
    $ReturnURL = SessionHelper::getSession('ReturnURL', 'CLIENTE');
?>

<form method="POST" action="<?= BASEDIR ?>Cliente/PerformSignUp">
    <table class="borderless">
        <tr>
            <td>Nome:</td>
            <td>
                <input type="text" name="nome" value="<?= $LastSearch['nome'] ?>">
            </td>
        </tr>
        <tr>
            <td>CPF:</td>
            <td>
                <input type="text" name="cpf" value="<?= $LastSearch['cpf'] ?>" maxlength="11">
                <span class="explain">apenas dígitos</span>
            </td>
        </tr>
        <tr>
            <td>Endereço:</td>
            <td>
                <input type="text" name="endereco" value="<?= $LastSearch['endereco'] ?>">
            </td>
        </tr>
        <tr>
            <td>Bairro:</td>
            <td>
                <input type="text" name="bairro" value="<?= $LastSearch['bairro'] ?>">
            </td>
        </tr>
        <tr>
            <td>CEP:</td>
            <td>
                <input type="text" name="cep" value="<?= $LastSearch['cep'] ?>" maxlength="8">
                <span class="explain">apenas dígitos</span>
            </td>
        </tr>
        <tr>
            <td>Telefone residencial:</td>
            <td>
                <input type="text" name="telResidencial" value="<?= $LastSearch['telResidencial'] ?>" maxlength="15">
                <span class="explain">(00)000000000</span>
            </td>
        </tr>
        <tr>
            <td>Telefone celular:</td>
            <td>
                <input type="text" name="telCelular" value="<?= $LastSearch['telCelular'] ?>" maxlength="15">
                <span class="explain">(00)000000000</span>
            </td>
        </tr>
        <tr>
            <td>E-mail:</td>
            <td>
                <input type="text" name="email" value="<?= $LastSearch['email'] ?>">
            </td>
        </tr>
        <tr>
            <td>Data de nascimento:</td>
            <td>
                <input type="text" name="dataDeNascimento" value="<?= $LastSearch['dataDeNascimento'] ?>" maxlength="10">
                <span class="explain">dd/mm/aaaa</span>
            </td>
        </tr>
        <tr>
            <td>Cidade:</td>
            <td>
                <?= Util::createHTMLSelect($ArCidades, 'cidade', 'Codigo', 'Nome', $LastSearch['cidade']) ?>
            </td>
        </tr>
        <tr>
            <td>Senha:</td>
            <td>
                <input type="password" name="senha" value="<?= $LastSearch['senha'] ?>">
            </td>
        </tr>
        <tr>
            <td>Confirmação da senha:</td>
            <td>
                <input type="password" name="senhaConf" value="<?= $LastSearch['senhaConf'] ?>">
            </td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="Cadastrar"></td>
        </tr>
    </table>
    <input type="hidden" name="ReturnURL" value="<?= $ReturnURL ?>">
</form>
